<template>
  <div class="todo">
       <h1>我是子组件Todo----{{car}}</h1>
       <button @click="getInfo('1万元')">点击我给父亲传递数据</button>
  </div>
</template>

<script>
export default {
  name: '',
  props:['car',"getInfo"]
}
</script>

<style scoped>
  .todo{
      width:400px;
      height: 200px;
      background: skyblue;
      margin: 10px auto;
  }
</style>
